#include <stdio.h>

int main(){
    // shenmingdeshiou yong double , shuru de shihou xuyao shiyong %lf 
    double a,b;
    scanf("%lf %lf", &a,&b);
    // float dan jing du double shuangjingdu 
    printf("%f", (a+b /12) * 0.34);
    return 0;
}